﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Game_Admin_Demo.admin
{
    public partial class createCat : System.Web.UI.Page
    {
        DataClasses1DataContext dc = new DataClasses1DataContext();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                danhmuc dm = new danhmuc {tendm=TextBox1.Text };
                dc.danhmucs.InsertOnSubmit(dm);
                dc.SubmitChanges();
                Server.Transfer("Category.aspx");
            }
        }
    }
}